package dsk.demo.product.entity.gupiao;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("g_week_price")
public class GWeekPrice {
    private Long id;
    // 股票代码
    private String thscode;
    // 股票日期 yyyy-MM-dd
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date time;

    // 开盘价
    @TableField("ths_open_w_fund")
    private BigDecimal thsOpenWFund;
    // 最高价
    @TableField("ths_high_w_fund")
    private BigDecimal thsHighWFund;
    // 最低价
    @TableField("ths_low_w_fund")
    private BigDecimal thsLowWFund;
    // 收盘价
    @TableField("ths_close_w_fund")
    private BigDecimal thsCloseWFund;
    // 涨跌额
    @TableField("ths_chg_w_fund")
    private BigDecimal thsChgWFund;
    // 涨跌额
    @TableField("ths_chg_ratio_w_fund")
    private BigDecimal thsChgRatioWFund;

    private BigDecimal avg55;

    private BigDecimal rsi6;

    private BigDecimal rsi6zhangfu;
    private BigDecimal rsi6diefu;
}